home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14351 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  29 lines

  1. Path: news.compuserve.com!newsmaster
  2. From: Philippe Verdy <100105.3120@compuserve.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Help : Huge Integer Variables  ?
  5. Date: 30 Mar 1996 01:29:29 GMT
  6. Organization: CompuServe Incorporated
  7. Message-ID: <4ji2pp$eu0@dub-news-svc-3.compuserve.com>
  8. NNTP-Posting-Host: hd75-001.compuserve.com
  9.  
  10. "Anwar A. Berrouayel" <Anwar@uh.edu> s'Θcrit :
  11. > Hello,
  12. > I need to use Huge Integers ( 8 Bytes or More)
  13. > The Bigger The Better.
  14. > Is it possible with C++ or any other programming Lang. ?
  15. > Thank You
  16. You can use the STL class in <bcd.h> for huge packed-BCD
  17. integers of any length (BCD is a good way to simply print
  18. its value in decimal notation, without requiring very complex
  19. and time-consuming divisions on very long integers.
  20. Under MS-VC++, you've got the __int64 datatype.
  21. Within the Sybase db-library, you'll find the DBMONEY
  22. type (internally a 64 bits integers holding hundredths of cents
  23. which is computable thru thd dbmnyXXX() functions.
  24. You can also write your own class with its arithmetic to suport
  25. these numbers.
  26.